import request from "@/utils/request";
import { parseStrEmpty } from "@/utils/ruoyi";

// CRM管理-CRM客户--查询订单可分配人
export function getFollowUser(id) {
  return request({
    url: "/sysCrm/cus/v1.0.0/getFollowUser",
    method: "get",
    params: { 
      id:parseStrEmpty(id)
    }
  });
}

// CRM管理-CRM客户-【客户详情】查询
export function getOrderById(id) {
  return request({
    url: '/sysCrm/cus/v1.0.0/getOrderById',
    method: 'get',
    params: { 
      id:parseStrEmpty(id)
    }
  })
}
// CRM管理-CRM客户-【客户列表】分页查询查询
export function queryCrmCompanyByPage(data) {
  return request({
    url: "/sysCrm/cus/v1.0.0/queryCrmCompanyByPage",
    method: "post",
    data: data,
  });
}

// CRM管理-CRM客户-【重新分配】
export function setFollowUser(params) {
  return request({
    url: "/sysCrm/cus/v1.0.0/setFollowUser",
    method: "get",
    params
  });
}
